﻿package mortal.game.scene3D.player.info
{
    import com.gengine.utils.*;
    import mortal.common.global.*;
    import mortal.game.view.platform.*;

    public class ResjsInfo extends Object
    {
        public var guild_war_guild_name:String = "";
        public var defense_summon:String = "";
        public var ra_sec:int;
        public var pal:int;
        public var picking:int;
        public var maincity_flag:int;
        public var proxy_lv:int;
        public var proxy_ex:int;
        public var proxy_ex2:int;
        public var tx_1:String;
        public var tx_2:String;

        public function ResjsInfo()
        {
            return;
        }// end function

        public function putObject(param1:Object) : void
        {
            var _loc_2:String = null;
            var _loc_3:int = 0;
            var _loc_4:Array = null;
            ObjectParser.putObject(param1, this);
            if (PlatformConst.isQQ())
            {
                this.proxy_lv = 0;
                this.proxy_ex = 0;
                this.proxy_ex2 = 0;
                _loc_3 = ParamsConst.instance.enterType;
                if (this.hasOwnProperty("tx_" + _loc_3))
                {
                    _loc_2 = this["tx_" + _loc_3];
                }
                if (_loc_2)
                {
                    _loc_4 = _loc_2.split("#");
                    this.proxy_lv = int(_loc_4[0]);
                    this.proxy_ex = int(_loc_4[1]);
                    this.proxy_ex2 = int(_loc_4[2]);
                }
            }
            return;
        }// end function

        public function clear() : void
        {
            this.guild_war_guild_name = "";
            this.defense_summon = "";
            this.ra_sec = 0;
            this.pal = 0;
            this.picking = 0;
            this.maincity_flag = 0;
            this.proxy_lv = 0;
            this.proxy_ex = 0;
            this.proxy_ex2 = 0;
            return;
        }// end function

        public function get proxyLv() : int
        {
            return this.proxy_lv;
        }// end function

        public function get isYearProxyVIP() : Boolean
        {
            return Boolean(this.proxy_ex & 1);
        }// end function

        public function get isProxyVIPSuper() : Boolean
        {
            return Boolean(this.proxy_ex & 2);
        }// end function

        public function get isProxyVIPOut() : Boolean
        {
            return Boolean(this.proxy_ex == 0 && this.proxy_lv == 0);
        }// end function

        public function clearGuildWarGuildName() : void
        {
            this.guild_war_guild_name = "";
            return;
        }// end function

        public function clearMainCityFlag() : void
        {
            this.maincity_flag = 0;
            return;
        }// end function

    }
}
